ComponentOne Basic Library for UWP
Basic Library Overview / CollectionView for UWP / Getting Started with C1CollectionView
In This Topic
    Getting Started with C1CollectionView
    In This Topic

    C1CollectionView implements the IC1CollectionView interface which in turn implements the standard ICollectionView interface. Like the standard CollectionView class in WPF, C1CollectionView supports current item management, item selection, sorting, grouping, filtering and  editing. If you can’t find enough information about a topic in this documentation then you can easily search the web for ICollectionView practices in WPF and Silverlight to find very valuable information that can be used in UWP.

    The C1CollectionView class can be found in the C1.UWP assembly.

    To get started with C1CollectionView, instantiate it with an IEnumerable collection of your business objects:

    Visual Basic
    Copy Code
    Dim customers As List(Of Customer) = Await GetCustomerData()
    Dim view = New C1.Xaml.C1CollectionView(customers)
    

    C#
    Copy Code
    List<Customer> customers = await GetCustomerData();
    var view = new C1.Xaml.C1CollectionView(customers);
    

    Then bind it to your favorite ItemsControl or data grid to start using C1CollectionView:

    Visual Basic
    Copy Code
    C1FlexGrid1.ItemsSource = view
    

    C#
    Copy Code
    c1FlexGrid1.ItemsSource = view;
    
    See Also